/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.company.ejb;

import com.company.entity.EmployeeRole;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author nguyentien
 */
@Stateless
public class EmployeeRoleFacade extends AbstractFacade<EmployeeRole> implements EmployeeRoleFacadeLocal {
    @PersistenceContext(unitName = "com.company_struts2-module-ejb_ejb_1.0-SNAPSHOTPU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public EmployeeRoleFacade() {
        super(EmployeeRole.class);
    }
    
}
